<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj =[
            {name:"zhang",count:20},
            {name:"li",count:25},
            {name:"wang",count:23},
        ]
        var res = obj.sort((a,b)=>{
            return a["count"]-b["count"];
        })
        console.log(res)
        
    </script>
</body>
</html>